<template>
  <div class="">
  </div>
</template>

<script>
export default {
  name: "ZuoYi",

  data () {
    return {};
  },

  created () {
    this.getModel();
  },

  mounted () {},

  methods: {
    getModel () {
      const params = {
        "model": "zoe-gpt",
        "messages": [
          {
            "role": "user",
            "content": "糖尿病患者饮食方面要注意什么"
          }
        ],
        "max_tokens": 1024,
        "stream": false,
        "temperature": null,
        "top_p": null,
        "repetition_penalty": null,
        "user": "user-1234"
      };
      this.$request.post("https://openapi.zuoshouyisheng.com/gpt/v1/chat/completions", params).then(res => {
        console.log("res:", res);
      });
    }
  }
};
</script>

<style lang="scss" scoped>
</style>
